package com.lg.system.wxconfig.entity;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.lg.utils.PageModel;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.lg.common.validate.Insert;
import com.lg.common.validate.Update;
import com.lg.common.validate.Delete;
import com.lg.common.validate.Search;
import com.lg.utils.Page;
/**
 * <p>
 * 
 * </p>
 *
 * @author dl
 * @since 2018-04-03
 */
@TableName("wx_config")
@JsonIgnoreProperties(value={Page.sort,Page.order,Page.rows,Page.total,Page.limit,Page.offset,Page.code},allowSetters=true)
public class WxConfig extends PageModel {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * appid
     */
    private String appid;

    /**
     * token
     */
    private String token;

    /**
     * 秘钥设置
     */
    @TableField("app_secret")
    private String appSecret;

    /**
     * 域名配置
     */
    private String domain;

    /**
     * 商户Id
     */
    @TableField("mch_id")
    private String mchId;

    /**
     * 支付秘钥
     */
    @TableField("paterner_key")
    private String paternerKey;
    
    /**
     * 加密密文
     */
    @TableField("aes_key")
    private String aesKey;

    /**
     * 证书路径（绝对路径）
     */
    @TableField("cert_path")
    private String certPath;

    /**
     * 标识字段预留
     */
    private String sign;

    /**
     * 0:关闭 1：开启
     */
    private Integer open;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }
    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }
    
    
    public String getAesKey() {
		return aesKey;
	}

	public void setAesKey(String aesKey) {
		this.aesKey = aesKey;
	}

	public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }
    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }
    public String getPaternerKey() {
        return paternerKey;
    }

    public void setPaternerKey(String paternerKey) {
        this.paternerKey = paternerKey;
    }
    public String getCertPath() {
        return certPath;
    }

    public void setCertPath(String certPath) {
        this.certPath = certPath;
    }
    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WxConfig{" +
        "id=" + id +
        ", appid=" + appid +
        ", token=" + token +
        ", appSecret=" + appSecret +
        ", domain=" + domain +
        ", mchId=" + mchId +
        ", paternerKey=" + paternerKey +
        ", certPath=" + certPath +
        ", sign=" + sign +
        ", open=" + open +
        ", aesKey=" + aesKey +
        "}";
    }
}
